//
//  LMLabelSelectView.h
//  LMTestDesign
//
//  Created by LM on 2022/11/30.
//

#import <UIKit/UIKit.h>
#import "LMLabelSelectModel.h"
#import "LMBaseCollectionView.h"
NS_ASSUME_NONNULL_BEGIN

typedef void (^LMLabelSelectedScrollBlock)(NSInteger index,BOOL isDidCell); // isDidCell 是否为点击触发

@interface LMLabelSelectView : UIView
@property (nonatomic,copy) LMLabelSelectedScrollBlock scrollBlock;
@property (strong,nonatomic) NSArray<LMLabelSelectModel*> *titles; // 选择器数据源
@property (strong,nonatomic) LMLabelSelectModel *lastModel; // 最近选择的模型值
@property (nonatomic,strong) LMBaseCollectionView *labelCollectionView;//

- (void)loadDataWithTitles:(NSArray*)titles; // 加载数据及刷新
- (void)loadCollection; // 刷新数据
// index 下标
// isDidCell yes 按钮点击  no 非按钮点击触发 （如：滚动视图后联动按钮选择）
- (void)moveScrollViewWithIndex:(NSInteger)index isDidCell:(BOOL)isDidCell;

@end

NS_ASSUME_NONNULL_END
